<!DOCTYPE html>
<!-- saved from url=(0031)http://w.weipaitang.com/my/sale -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="format-detection" content="telephone=no">
<link href="<?php echo TEMPLATE_SITE_URL;?>/css/common.css" type="text/css" rel="stylesheet">
<link href="<?php echo TEMPLATE_SITE_URL;?>/css/sale.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/zepto.js" charset="utf-8"></script>
<title>我的已卖拍品</title>
</head>
<body>
<div id="contentbox">
  <div class="topMenu">
    <div class="buyAndSell"> 
      <a href="#" class="buy">买买买</a>
      <div class="sell now">卖卖卖</div>
    </div>
    <ul>
      <li <?php if(!isset($_GET['state'])){ echo 'class="selected"';}?>>全　部</li>
      <li <?php if($_GET['state']=='0'){ echo 'class="selected"'; }?>>待付款</li>
      <li <?php if($_GET['state']=='1'){ echo 'class="selected"'; }?>>未发货</li>
      <li <?php if($_GET['state']=='2'){ echo 'class="selected"'; }?>>待收货</li>
      <li <?php if($_GET['state']=='4'){ echo 'class="selected"'; }?>>流拍</li>
    </ul>
    <div class="search" url="/my/ordersearch/sale"></div>
  </div>
  <div class="orderMain">
  	<?php if(!empty($output['list'])){?>
  	<?php foreach($output['list'] as $val){?>
    <div class="orderItem">
      <div class="title" style="background-image: url(<?php echo UPLOAD_SITE_URL;?>/shop/member/<?php if(!empty($val['avatar'])){ echo $val['avatar'];}else{ echo 'member.png';}?>)">
        <div class="nickname"> <a href="<?php echo BASE_SITE_URL;?>/index.php?act=my&userid=<?php echo $val['user_id'];?>"><?php echo $val['user_name'];?></a> </div>       
        <div class="status green">待付款</div>
      </div>
      <div class="info"> 
      <a href="<?php echo BASE_SITE_URL;?>/index.php?act=order&op=orderuserdetail&order_id=<?php echo $val['id'];?>">
        <div class="content">
          <div class="goodsImg" style="background-image:url(<?php echo $val['auction_img1'];?>);"> </div>
          <div class="desc"><?php echo $output['auction_name'];?></div>
          <ul>
            <li><span>成交金额：</span>￥<?php echo $val['price'];?>元</li>            
            <li><span>成交时间：</span><?php echo date("Y-m-d H:i:s",$val['add_time']);?></li>
          </ul>
        </div>
        <?php if($val['order_state']=='0'){?>
        <div class="pay">待付：<span>￥<?php echo $val['price'];?>元</span></div>
        <?php }?>
        </a> </div>
        <!-- 
      <div class="tools">
        <button uri="1508111938ym4hju">当面交易</button>
      </div>  -->     
    </div>
    <?php }?>
    <?php }?>
  </div>
</div>
<?php include template('home/nav');?>
</body>
</html>
